aboutsummaryrefslogtreecommitdiff
path: root/ui/src/routes/view/[id]/+page.js
blob: a4579361ce36c3d235d638053d4b03b66e382692 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/** @type {import('./$types').PageLoad} */
export async function load({ params }) {
   const req = await fetch(`/api/v1/view/${params.id}`) 
    const reqJson = await req.json();

  return {
    id: params.id,
    req: req,
    reqJson: reqJson,
  };
}